import request from '@/http/request'
// 供应商列表查询
export const $apiAwardVirtualSupplier = (params:any) => {
    return request.request({ url: '/api/awardVirtual/supplier', method: 'GET', params: params }, true, true, false)
  }

  // 供应商新增
export const $apiAwardVirtualSupplierAdd =  ( data) => {
    return request.request({ url: '/api/awardVirtual/supplier/add', method: 'POST', data: data }, true, true, false)
  }


// 供应商编辑
export const $apiAwardVirtualSupplierUpdate =  ( data) => {
    return request.request({ url: '/api/awardVirtual/supplier/update', method: 'POST', data: data }, true, true, false)
  }
// 修改供应商状态
// export const API_URL_VIRTUALGOODS_SUPPLIER_UPDATESTATE = '/api/virtualGoods/supplier/updateState'

export const $apiAwardVirtualSupplierUpdateState =  ( data) => {
    return request.request({ url: '/api/awardVirtual/supplier/updateState', method: 'POST', data: data }, true, true, false)
  }

  // 同步商品
export function $syncGoods(data:any){
    return request.request({
      url: '/api/awardVirtual/supplier/getGoodsList',
      method: 'post',
      data
    })
  }
//   设置回调接口
  
  export const $apiAwardVirtualSupplierSetGoodsNotifyUrl =  ( data) => {
    return request.request({ url: '/api/awardVirtual/supplier/setGoodsNotifyUrl', method: 'POST', data: data }, true, true, false)
  }
